<?php
		session_start();
		
        require_once 'librarys/funs/class_user.php';
        $t= new tin();
       	$lang='vi';
		if(isset($_COOKIE["lang"])) $lang=$_COOKIE["lang"];
   		else if(isset($_SESSION["lang"])) $lang=$_SESSION["lang"];
		
        $view='';
        $idseo=-1;
        if(isset ($_GET['view'])) $view=$_GET['view'];
		include("duongdan.php");
		$rooturl="http://".$_SERVER['SERVER_NAME']."".$duongdan;
		$a=$_GET['a'];
		if(isset($_GET['b'])) $b=$_GET['b']; 
		$b=explode("-",$b);
		$bb=$b[count($b)-1];
		if(isset($_GET['c'])) $c=$_GET['c']; 
		$c=explode("-",$c);
		$cc=$c[count($c)-1];
		if(isset($_GET['d'])) $d=$_GET['d']; 
		$d=explode("-",$d);
		$dd=$d[count($d)-1];
		if(isset($_GET['e'])) $e=$_GET['e']; 
		$e=explode("-",$e);
		$ee=$e[count($e)-1];
		if(isset($_GET['f'])) $f=$_GET['f']; 
		$f=explode("-",$f);
		$ff=$f[count($f)-1];
		$res = $t->get_by_thutu('seo',-1,-1," and alias='$a'");	
		$row = mysql_fetch_array($res);
		$idseo=$row['id'];
		
		$seo1=$t->get_by_thutu('seo');
		while($row=mysql_fetch_array($seo1)){
		$list[$row["id"]]=$row;
    	}
        require_once 'librarys/funs/seo_tour.php';
        $seo_tour1 = new seo_tour();
        $seo1=$seo_tour1->seo($idseo,$bb,$lang,$cc,$dd,$ee,$ff);
		$t->LuuThongTin();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <link href="" rel="shortcut icon">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="content-language" content ="vi" />
        <meta name="robots" content="INDEX, FOLLOW" />
        <meta content="<?=$seo1['keyword']; ?>" name="keywords">
        <meta content="<?=$seo1['description']; ?>" name="description">
        <title>.:<?=$seo1['title']; ?>:.</title>
        <base href="<?=$rooturl;?>"  />
        
        <? include("librarys/incs/head.php"); ?>
    </head>
    <body>
<!--     	<div id="loading_page" class="loading_page"></div> -->
		<!-- <script>
			addListener(window, "load", finishedLoad);
		</script> -->
        <? include("librarys/incs/quangcao.php"); ?>
        <div class="content">
			<? include("librarys/incs/header.php"); ?>
            <? include("librarys/incs/menu.php"); ?>
            
            <div class="main">
            	<div class="left">
					<? 
						include("librarys/incs/menu_left.php"); 
                    	include("librarys/incs/hotrotructuyen.php");
                   		include("librarys/incs/quangcao_left.php");
						include("librarys/incs/tygia.php");
                    	include("librarys/incs/lienketsite.php");
						if ($a!="" && $a!=$list['1']['alias'])
							include("librarys/incs/sanphambanchay_slide.php"); 
					?>
				</div>
                <div class="right">
            		<? 
						if ($a=="" || $a==$list['1']['alias'])
							include("librarys/incs/trangchu.php"); 
						
						if ($a==$list['13']['alias'])
							include("librarys/incs/sanpham_root.php");
						if ($a==$list['12']['alias'])
							include("librarys/incs/sanpham_chungloai.php");
						if ($a==$list['14']['alias'])
							include("librarys/incs/sanpham_loai.php");
						if ($a==$list['15']['alias'])
							include("librarys/incs/sanpham_chitiet.php");
						if ($a==$list['18']['alias'])
							include("librarys/incs/sanpham_hot.php");
							
						if ($a==$list['2']['alias'])
							include("librarys/incs/tintuc.php"); 
						if ($a==$list['16']['alias'])
							include("librarys/incs/tintucloai.php"); 
						if ($a==$list['17']['alias'])
							include("librarys/incs/tintucchitiet.php"); 
						
						if ($a==$list['6']['alias'])
							include("librarys/incs/gioithieu.php"); 
						if ($a==$list['3']['alias'])
							include("librarys/incs/catologue.php"); 
						if ($a==$list['4']['alias'])
							include("librarys/incs/bangmamau.php"); 
						if ($a==$list['5']['alias'])
							include("librarys/incs/tuyendung.php"); 
						if ($a==$list['7']['alias'])
							include("librarys/incs/lienhe.php"); 
						if ($a==$list['8']['alias'])
							include("librarys/incs/ketqua_timkiem.php"); 
						if ($a==$list['9']['alias'])
							include("librarys/incs/phuongthucthanhtoan.php"); 
						if ($a==$list['10']['alias'])
							include("librarys/incs/huongdanmuahang.php"); 
						if ($a==$list['11']['alias'])
							include("librarys/incs/vanchuyen.php"); 
						if ($a==$list['19']['alias'])
							include("librarys/incs/bangbaogia.php"); 
						if ($a==$list['20']['alias'])
							include("librarys/incs/vanban.php"); 
						if ($a==$list['21']['alias'])
							include("librarys/incs/huongdansudungsanpham.php");
						if ($a==$list['22']['alias'])
							include("librarys/incs/xuongsanxuat.php"); 
						if ($a==$list['23']['alias'])
							include("librarys/incs/sodowebsite.php"); 
					?>
                </div>
            </div>
            
            <? 
				if ($a=="" || $a==$list['1']['alias']) {
					include("librarys/incs/sanpham_giamgia.php");
					include("librarys/incs/sanphamhot.php"); 
					include("librarys/incs/tintuc_bot.php"); 
				}
            	include("librarys/incs/sanpham_root_bot.php"); 
				include("librarys/incs/connect_logo.php"); 
			?>
            
            <? include("librarys/incs/footer.php"); ?>
        </div>
    
    </body>
</html>